﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace cswork3_2
{
    public class ClockSol
    {
        public Clock clock = new Clock();

        public ClockSol()
        {
            clock.Tick += Clk_Ticking;
            clock.Alarm += Clk_Alarming;
        }


        void Clk_Ticking(object sender,ClockEventArgs args)
        {
            Console.WriteLine("Ticking!");
        }
        void Clk_Alarming(object sender, ClockEventArgs args)
        {
            Console.WriteLine("Alarming!");
        }
    }
}
